﻿using System;
using System.Collections.Generic;
using System.Text;
using Tauren.Business.Entity.Config;

namespace Tauren.Business.Service.TenantInformation
{
    /// <summary>
    /// 租户业务逻辑处理
    /// </summary>
    public interface ITenantInformationService
    {
        /// <summary>
        /// 新增租户
        /// </summary>
        /// <param name="tenant"></param>
        /// <returns></returns>
        IResponseMessage Add(Entity.Input.TenantInformation_Input tenant);

        /// <summary>
        /// 编辑租户
        /// </summary>
        /// <param name="tenant"></param>
        /// <returns></returns>
        IResponseMessage Editor(Entity.Input.TenantInformation_Input tenant);

        /// <summary>
        /// 删除租户
        /// </summary>
        /// <param name="auotId"></param>
        /// <returns></returns>
        IResponseMessage Delete(int auotId);

        /// <summary>
        /// 删除租户--根据租户ID
        /// </summary>
        /// <param name="auotId"></param>
        /// <returns></returns>
        IResponseMessage DeleteByCode(string code);

        /// <summary>
        /// 根据Id获取数据
        /// </summary>
        /// <param name="autoId"></param>
        /// <returns></returns>
        IResponseMessage Get(int autoId);

        /// <summary>
        /// 根据code获取数据
        /// </summary>
        /// <param name="autoId"></param>
        /// <returns></returns>
        IResponseMessage GetByCode(string code);

        /// <summary>
        /// 获取所有的租户信息
        /// </summary>
        /// <param name="autoId"></param>
        /// <returns></returns>
        IResponseMessage All();
    }
}
